﻿using OpenAdmin.Application.Services.Dtos;
using System.Threading.Tasks;

namespace OpenAdmin.Application.Services
{
    /// <summary>
    /// 用户服务
    /// </summary>
    public interface IAccountService
    {
        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="requestDto"></param>
        /// <returns></returns>
        Task<LoginResponseDto> LoginAsync(LoginRequestDto requestDto);

        /// <summary>
        /// 刷新token
        /// </summary>
        /// <param name="token"></param>
        /// <returns></returns>
        Task<LoginResponseDto> RefreshTokenAsync(string token);
    }
}
